import request from '@/utils/request'

// 查询票渠道配置列表
export function listInvoice(query) {
  return request({
    url: '/admin-api/invoice/configChannelModel/list',
    method: 'get',
    params: query
  })
}

// 查询票渠道配置详细
export function getInvoice(id) {
  return request({
    url: '/admin-api/invoice/configChannelModel/' + id,
    method: 'get'
  })
}

// 新增票渠道配置
export function addInvoice(data) {
  return request({
    url: '/admin-api/invoice/configChannelModel',
    method: 'post',
    data: data
  })
}

// 修改票渠道配置
export function updateInvoice(data) {
  return request({
    url: '/admin-api/invoice/configChannelModel',
    method: 'put',
    data: data
  })
}

// 删除票渠道配置
export function delInvoice(id) {
  return request({
    url: '/admin-api/invoice/configChannelModel/' + id,
    method: 'delete'
  })
}



// 查询票渠道配置列表
export function listInvoiceDetail(query) {
  return request({
    url: '/admin-api/invoice/configItemModel/list',
    method: 'get',
    params: query
  })
}

// 查询票渠道配置详细
export function getInvoiceDetail(id) {
  return request({
    url: '/admin-api/invoice/configItemModel/' + id,
    method: 'get'
  })
}

// 新增票渠道配置
export function addInvoiceDetail(data) {
  return request({
    url: '/admin-api/invoice/configItemModel',
    method: 'post',
    data: data
  })
}

// 修改票渠道配置
export function updateInvoiceDetail(data) {
  return request({
    url: '/admin-api/invoice/configItemModel',
    method: 'put',
    data: data
  })
}

// 删除票渠道配置
export function delInvoiceDetail(id) {
  return request({
    url: '/admin-api/invoice/configItemModel/' + id,
    method: 'delete'
  })
}
